package com.example.actearly_revised;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.TextView;

public class DecisionMaker extends Activity {

	SQLogic entry = new SQLogic(DecisionMaker.this);
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_decision_maker);
        
        entry.open();
        User currUser= entry.getUserData(1);
        entry.close();
        TextView message = (TextView) findViewById(R.id.DM_Message);
        message.setText("Act Early by talking to Dr. " + currUser.doctor + " if " + currUser.childname + ":");
        
        TextView criteria = (TextView) findViewById(R.id.DM_List);
		criteria.setText("Doesn't know what to do with common things, like a brush, phone, form, spoon \n\n"
				+ "Doesn't use 2-word phrases (for example, \"drink milk\")\n\n"
				+ "Doesn't copy actions and words\n\n"
				+ "Doesn't follow simple instructions\n\n"
				+ "Doesn't walk steadily\n\n" 
				+ "Loses skills he/she once had");
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_decision_maker, menu);
        return true;
    }
    
    
    
}
